package easyexcel.listener;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xuezhiqiang@sensetime.com
 * @create 2018-09-03 10:14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExcelCameraViperVo {

    @ExcelProperty(value = "视频源名称(必填)")
    private String name;

    @ExcelProperty(value = "设备ID(选填)")
    private Integer deviceCode;
//    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "接入类型(必填)")
    private String sourceName;

    @ExcelProperty(value = "经度(必填)")
    private String longitude;

    @ExcelProperty(value = "纬度(必填)")
    private Integer latitude;

    @ExcelProperty(value = "网络地址URL(必填)")
    private String path;

    // 传输协议类型：0为TCP，1为UDP，默认为TCP = "{\"TCP\":\"0\",\"UDP\":\"1\"}"
    @ExcelProperty(value = "协议类型(必填)", converter = CustomStringStringConverter.class)
    private Integer protocolType = 0;

    @ExcelProperty(value = "回放平台名称(选填)")
    private String replayPlatformName;

    @ExcelProperty(value = "回放ID(选填)")
    private String replayId;

    @ExcelProperty(value = "备注(选填)")
    private String remark;
}
